package com.qiuhui.mapper;

import com.qiuhui.entity.Books;
import com.qiuhui.untils.Mybatisuntils;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

public class BookMapperTest_ {
    @Test
    public void getBooksByLike() {
        SqlSession sqlSession = Mybatisuntils.getSqlSession();
        BooksMapper mapper = sqlSession.getMapper(BooksMapper.class);
        List<Books> list = mapper.getBookByLike("子");
        for (Books books : list) {
            System.out.println(books);
        }
    }
}
